//
//  NYMineMoudle.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2017/12/4.
//  Copyright © 2017年 niuwaketang. All rights reserved.
//

#import "NYMineMoudle.h"
#import "NYMineViewController.h"
#import "MainServiceProtocol.h"
#import "NYSignInViewController.h"
#import "NYMyStarRankingViewController.h"
#import "NYMyMessageViewController.h"
#import "NYSubjectAnalysisViewController.h"
@implementation NYMineMoudle
- (void)modSetUp:(BHContext *)context
{
        id <MainServiceProtocol> mainService = [[BeeHive shareInstance] createService:@protocol(MainServiceProtocol)];
        NYMineViewController *vc = [[NYMineViewController alloc] init];
        vc.hidesBottomBarWhenPushed = NO;
        vc.tabBarItem.selectedImage = [UIImage wo_de_gao_liangRenderingMode:(UIImageRenderingModeAlwaysOriginal)];
        vc.tabBarItem.image = [UIImage wo_de_chang_taiRenderingMode:(UIImageRenderingModeAlwaysOriginal)];
        vc.title = [NSString app_Mine];
        NYUserManager;
        BaseNavigationViewController *navController = [[BaseNavigationViewController alloc] initWithRootViewController:vc];
        [mainService addTabBarController:navController atIndex:NYTabControllerIndexMine];
        [self _RegisterRouter];
}
- (void)_RegisterRouter
{
        [AppShareRouterService addRoute:kNYSignInControllerURI handlerClass:[NYSignInViewController class]];
        [AppShareRouterService addRoute:kNYMyStarRankingURI handlerClass:[NYMyStarRankingViewController class]];
        [AppShareRouterService addRoute:kNYMyMessageURI handlerClass:[NYMyMessageViewController class]];
        [AppShareRouterService addRoute:kNYMineURI handlerClass:[NYMineViewController class]];
        [AppShareRouterService addRoute:kNYSubjectAnalysisURI handlerClass:[NYSubjectAnalysisViewController class]];
        
}
@end
